//
//  MyCell.m
//  MyLearnJob
//
//  Created by qianfeng on 15-6-27.
//  Copyright (c) 2015年 朱共营. All rights reserved.
//

#import "MyCell.h"
#import "UIImageView+WebCache.h"
@implementation MyCell

- (void)awakeFromNib {
    self.picImageView.layer.masksToBounds=YES;
    self.picImageView.layer.cornerRadius=8;
}
- (void)showDataWithModel:(AppModel *)model{
    [self.picImageView sd_setImageWithURL:[NSURL URLWithString:model.pic] placeholderImage:[UIImage imageNamed: @"loading" ]];
    self.nameLable.text=model.name;
    self.numberLable.text=[NSString stringWithFormat:@"%ld",model.numbers.integerValue];
    self.durationLable.text=[NSString stringWithFormat:@"%ld小时",model.duration.integerValue/60/60/1000];
    
    

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
